/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.stateless;

import java.util.List;
import javax.ejb.Remote;
import persistence.entity.Customer;

/**
 *
 * @author Craig
 */
@Remote
public interface CustomerFacadeRemote {

    void create(Customer customer);

    void edit(Customer customer);

    void remove(Customer customer);

    Customer find(Object id);

    List<Customer> findAll();

    List<Customer> findRange(int[] range);

    int count();

    boolean authenticate(int custID, String custPass, boolean isATM);

    Customer createCustomer(String aName, String aAddress, String aPhone, String aPassword);

    Boolean updateName(int id, String name);

    Boolean updateID(int currentID, int newID);

    Boolean updateAddress(int id, String address);

    Boolean updatePhone(int id, String phone);

    Boolean updatePassword(int id, String password);

    Boolean removeCustomer(int id);
    
}
